Optimal. Leaf size=173 \[ -\frac{x \left (a+b x^2\right )^p \left (\frac{b x^2}{a}+1\right )^{-p} F_1\left (\frac{1}{2};-p,1;\frac{3}{2};-\frac{b x^2}{a},\frac{e^2 x^2}{d^2}\right )}{e}+\frac{d \left (a+b x^2\right )^{p+1} \, _2F_1\left (1,p+1;p+2;\frac{e^2 \left (b x^2+a\right )}{b d^2+a e^2}\right )}{2 (p+1) \left (a e^2+b d^2\right )}+\frac{x \left (a+b x^2\right )^p \left (\frac{b x^2}{a}+1\right )^{-p} \, _2F_1\left (\frac{1}{2},-p;\frac{3}{2};-\frac{b x^2}{a}\right )}{e} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.148441, antiderivative size = 173, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 8, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.444, Rules used = {844, 246, 245, 757, 430, 429, 444, 68} \[ -\frac{x \left (a+b x^2\right )^p \left (\frac{b x^2}{a}+1\right )^{-p} F_1\left (\frac{1}{2};-p,1;\frac{3}{2};-\frac{b x^2}{a},\frac{e^2 x^2}{d^2}\right )}{e}+\frac{d \left (a+b x^2\right )^{p+1} \, _2F_1\left (1,p+1;p+2;\frac{e^2 \left (b x^2+a\right )}{b d^2+a e^2}\right )}{2 (p+1) \left (a e^2+b d^2\right )}+\frac{x \left (a+b x^2\right )^p \left (\frac{b x^2}{a}+1\right )^{-p} \, _2F_1\left (\frac{1}{2},-p;\frac{3}{2};-\frac{b x^2}{a}\right )}{e} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 844
Rule 246
Rule 245
Rule 757
Rule 430
Rule 429
Rule 444
Rule 68
Rubi steps
\begin{align*} \int \frac{x \left (a+b x^2\right )^p}{d+e x} \, dx &=\frac{\int \left (a+b x^2\right )^p \, dx}{e}-\frac{d \int \frac{\left (a+b x^2\right )^p}{d+e x} \, dx}{e}\\ &=-\frac{d \int \left (\frac{d \left (a+b x^2\right )^p}{d^2-e^2 x^2}+\frac{e x \left (a+b x^2\right )^p}{-d^2+e^2 x^2}\right ) \, dx}{e}+\frac{\left (\left (a+b x^2\right )^p \left (1+\frac{b x^2}{a}\right )^{-p}\right ) \int \left (1+\frac{b x^2}{a}\right )^p \, dx}{e}\\ &=\frac{x \left (a+b x^2\right )^p \left (1+\frac{b x^2}{a}\right )^{-p} \, _2F_1\left (\frac{1}{2},-p;\frac{3}{2};-\frac{b x^2}{a}\right )}{e}-d \int \frac{x \left (a+b x^2\right )^p}{-d^2+e^2 x^2} \, dx-\frac{d^2 \int \frac{\left (a+b x^2\right )^p}{d^2-e^2 x^2} \, dx}{e}\\ &=\frac{x \left (a+b x^2\right )^p \left (1+\frac{b x^2}{a}\right )^{-p} \, _2F_1\left (\frac{1}{2},-p;\frac{3}{2};-\frac{b x^2}{a}\right )}{e}-\frac{1}{2} d \operatorname{Subst}\left (\int \frac{(a+b x)^p}{-d^2+e^2 x} \, dx,x,x^2\right )-\frac{\left (d^2 \left (a+b x^2\right )^p \left (1+\frac{b x^2}{a}\right )^{-p}\right ) \int \frac{\left (1+\frac{b x^2}{a}\right )^p}{d^2-e^2 x^2} \, dx}{e}\\ &=-\frac{x \left (a+b x^2\right )^p \left (1+\frac{b x^2}{a}\right )^{-p} F_1\left (\frac{1}{2};-p,1;\frac{3}{2};-\frac{b x^2}{a},\frac{e^2 x^2}{d^2}\right )}{e}+\frac{x \left (a+b x^2\right )^p \left (1+\frac{b x^2}{a}\right )^{-p} \, _2F_1\left (\frac{1}{2},-p;\frac{3}{2};-\frac{b x^2}{a}\right )}{e}+\frac{d \left (a+b x^2\right )^{1+p} \, _2F_1\left (1,1+p;2+p;\frac{e^2 \left (a+b x^2\right )}{b d^2+a e^2}\right )}{2 \left (b d^2+a e^2\right ) (1+p)}\\ \end{align*}
Mathematica [A] time = 0.21198, size = 172, normalized size = 0.99 \[ \frac{\left (a+b x^2\right )^p \left (2 e x \left (\frac{b x^2}{a}+1\right )^{-p} \, _2F_1\left (\frac{1}{2},-p;\frac{3}{2};-\frac{b x^2}{a}\right )-\frac{d \left (\frac{e \left (x-\sqrt{-\frac{a}{b}}\right )}{d+e x}\right )^{-p} \left (\frac{e \left (\sqrt{-\frac{a}{b}}+x\right )}{d+e x}\right )^{-p} F_1\left (-2 p;-p,-p;1-2 p;\frac{d-\sqrt{-\frac{a}{b}} e}{d+e x},\frac{d+\sqrt{-\frac{a}{b}} e}{d+e x}\right )}{p}\right )}{2 e^2} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.635, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( b{x}^{2}+a \right ) ^{p}x}{ex+d}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b x^{2} + a\right )}^{p} x}{e x + d}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left (b x^{2} + a\right )}^{p} x}{e x + d}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x \left (a + b x^{2}\right )^{p}}{d + e x}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b x^{2} + a\right )}^{p} x}{e x + d}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]